package isquirrel.beans;

public class FriendLike {

	private Url _url = null;
	private int _likes = -1;
	private double _ranking = 0;
	
	public FriendLike(Url url, int likes, double ranking){
		
		_url = url;
		_likes = likes;
		_ranking = ranking;
	}
	
	public Url url(){
		
		return _url;
		
	}
	
	public int likes(){
	
		return _likes;
		
	}
	
	public double ranking(){
		
		return _ranking;
		
	}
	
	public int ranking_css(){
		
		double csswidth = _ranking * 160;
		csswidth = (csswidth> 70)? 70: csswidth;
		
		return (int) Math.ceil(csswidth);
		
	}
	
}
